<section class="scrollable padder-md" data-ng-controller="AdminRoleListController">
    <div class="m-b-md">
        <h3 class="m-b-none text-black">
            <i class="fa fa-list m-r-sm"></i>后台基础配置
        </h3>
    </div>
    <!-- Toolbar 按钮栏 -->
    <section class="panel panel-default scrollable">
        <header class="panel-heading">
            <div class="row">
                <div class="col-sm-5">
                    <div class="od-head-title">角色列表</div>
                </div>
            </div>
        </header>

        <form class="form-inline" data-ng-submit="getObjList()">
            <div class="wrapper row">
                <div class="col-sm-12 text-right">
                    <div class="form-group">
                        <button class="form-control btn btn-sm btn-success " type="button" data-ng-click="add()">新增</button>
                    </div>
                </div>
            </div>
        </form>
        <!-- 表格部分 -->
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>角色名称</th>
                    <th>备注</th>
                    <th>状态</th>
                    <th>是否超级管理员</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr data-ng-repeat="adminRole in adminRoleList">
                    <td>{{adminRole.id}}</td>
                    <td>{{adminRole.name}}</td>
                    <td>{{adminRole.description}}</td>
                    <td>
                        <span data-ng-if="adminRole.state == 1" class="badge bg-success">正常</span>
                        <span data-ng-if="adminRole.state != 1" class="badge bg-danger">禁用</span>
                    </td>
                    <td>
                        <span data-ng-if="adminRole.isSuper == 1" class="badge bg-success">是</span>
                        <span data-ng-if="adminRole.isSuper != 1" class="badge bg-danger">否</span>
                    </td>
                    <td>
                        <a href="javascript:void(0);" class="text-primary m-r-xs"
                           data-ng-click="edit(adminRole.id)"><i class="fa fa-edit"></i>编辑</a>
                        <a href="javascript:void(0);" class="text-danger m-r-xs"
                           data-ng-click="delete(adminRole.id)"><i class="fa fa-trash-o"></i>删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </section>
</section>
